package cn.ven.service;

import cn.ven.entity.Content;
import cn.ven.mapper.ContentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContentServiceImpl implements ContentService {

    @Autowired
    ContentMapper contentMapper;


    @Override
    public void addContent(Content content) {
        contentMapper.insert(content);
    }

    @Override
    public void delContent(int id) {
        contentMapper.deleteById(id);
    }
}
